<html>
<head><meta charset="utf-8"><title>building cranelift · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/building.20cranelift.html">building cranelift</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215061665"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/building%20cranelift/near/215061665" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/building.20cranelift.html#215061665">(Oct 30 2020 at 07:01)</a>:</h4>
<p>How do I build cranelift? CI is failing but <code>./x.py build</code> (and with <code>--stage 2</code> as well) passes locally. Here's the PR: <a href="https://github.com/rust-lang/rust/issues/78548">#78548</a></p>
<p>Cc <span class="user-mention" data-user-id="133247">@bjorn3</span> since you are the primary author of cg_cranelift</p>



<a name="215064888"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/building%20cranelift/near/215064888" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/building.20cranelift.html#215064888">(Oct 30 2020 at 08:06)</a>:</h4>
<p><span class="user-mention" data-user-id="307537">@Camelid</span> <code>./x.py check</code> builds it by default. For <code>./x.py build</code> you will have to add "cranelift" to the <code>codegen-backends</code> array in <code>config.toml</code>.</p>



<a name="215122126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/building%20cranelift/near/215122126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/building.20cranelift.html#215122126">(Oct 30 2020 at 16:58)</a>:</h4>
<p>Thanks! I'll try <code>./x.py check</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>